V2EX  ›  英汉词典
Enqueued related words: Exception Handling, State Machine

Control Flow

定义 Definition

“Control flow”指程序(或算法)中语句执行的先后顺序与路径,通常由顺序执行、分支(如 if/else)、循环(如 for/while)、函数调用、异常处理等结构共同决定。(在更广义的语境中也可指流程/工作流中的控制路径。)

发音 Pronunciation (IPA)

/kənˈtroʊl floʊ/

例句 Examples

The control flow is simple: it checks the input and then prints a result.
控制流程很简单:它先检查输入,然后输出结果。

To improve readability, she refactored the function so the control flow handles errors early and keeps the main logic clear.
为了提高可读性,她重构了这个函数,让控制流程先处理错误,并保持主逻辑清晰。

词源 Etymology

“Control”源自法语 contreroller(核对、检验账目,后来引申为“控制、支配”),而“flow”来自古英语 flōwan(流动)。组合成“control flow”后,在计算机科学中用来比喻执行会“流向”哪条路径由结构来“控制”

相关词 Related Words

文学与经典作品 Literary Works

  • Structure and Interpretation of Computer Programs(《计算机程序的构造和解释》)——讨论过程、条件与递归等对控制流程的组织方式。
  • The C Programming Language(《C 程序设计语言》)——系统介绍 if/else、switch、for/while、break/continue 等控制流程结构。
  • Clean Code(《代码整洁之道》)——强调通过简化控制流程来提升可读性与可维护性。
  • Introduction to Algorithms(《算法导论》)——在算法描述与伪代码中大量体现控制流程(分支、循环与过程调用)。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1312 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 16:31 · PVG 00:31 · LAX 08:31 · JFK 11:31
♥ Do have faith in what you're doing.